<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
     <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<style type="text/css">
	*{
		margin: 0;
		padding: 0;
	}
	#allBooks{
	display: inline-block;
	margin-left: 120px;
    margin-top: 80px;
	
		}
	#allBooks li{
	background-color: green;
	border: thin solid red;
	list-style: none;
	height:50px;
	line-height: 25px;	
	position: relative;
	}
	span{
	position: relative;
	top: 13px;
	color: red;
	}
</style>
</head>
<body>
	
	<form action="" id="form1">
	 <p><input name="serach" value="" id="serach" placeholder="搜索"><a href="http://localhost/sm/book/ByBname?bookName=${request.Parameters('serach')}">搜索</a>
	 <a href="http://localhost/sm/book/findAll">查看所有书籍</a>
	 <p/>
	 
	 <input name="bName" value="" placeholder="书名">
	 <input name="auth" value="" placeholder="作者">
	 <input name="price" value="" placeholder="价格">
	 <input name="type" value="" placeholder="类型">
	 <input name="date" value="" placeholder="日期">
	 <input name="addr" value="" placeholder="图片地址">
	 <input name="publish" value="" placeholder="出版社">
	 s
	 
	 <ul id="allBooks">
	 	<c:forEach items="${books}" var="book">
		<li >
		<span>书名&nbsp;:${book.bookName}</span>&nbsp;
		<span>作者&nbsp;:${book.author}</span>&nbsp;
		<span>价格&nbsp;:${book.price}</span>&nbsp;
		<span>类型&nbsp;:${book.type}</span>&nbsp;
		<span>出版日期&nbsp;:${book.date}</span>&nbsp;
		<span>图片地址&nbsp;:${book.pAddress}</span>&nbsp;
		<span>出版社&nbsp;:${book.publish}</span> 
		</li>
		<a href="http://localhost/sm/book/delete?bookName=${book.bookName}" onclick="open()">删除</a>
		</c:forEach>
		
		
	</ul>    
	</form>
</body>

</html>